﻿using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Controller
{
    public class RoomTypeController
    {
        // BookingDB db = new BookingDB();
        protected RoomTypeBussiness Controller = new RoomTypeBussiness();
        public TblRoomType objRoomType{get;set; }

        public void AddData()
        {
            Controller.AddData(objRoomType);
        }

        public bool DeleteData(int k)
        {
          return  Controller.DeleteData(k);
        }

        public void UpdateData()
        {
            Controller.UpdateData(objRoomType);
        }

        public List<TblRoomType> GetAllData()
        {
            return Controller.GetAll();
        }

        public TblRoomType GetDataByRoomTypeID(int k)
        {
            return Controller.GetDataByKey(k);
        }


        /*Cac phuong thuc mo rong ra khac*/
    }
}
